<template>
    <div class="login-box">
        <el-row>
            <el-col :span="8">
                <el-button id="login" v-on:click="back" style="width:100%" type="primary">返回</el-button>
            </el-col>
        </el-row>
    </div>
</template>
<script>
    export default {
        data () {
            return {

            }
        },
        methods: {
            back : function(event){
                this.$router.push({path: '/'});
            }
        }
    }
</script>

<style>
    #app {
        font-family: Helvetica, sans-serif;
        text-align: center;
    }
    .el-row {
        margin-bottom: 20px;
    }
    .last-child {
        margin-bottom: 0;
    }
    .login-box {
        margin-top:20%;
        margin-left:40%;
    }
</style>